package org.skipper.samples.rocketmq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.skipper.rocketmq.spring.starter.annotation.RocketMQMessageListener;
import org.skipper.rocketmq.spring.starter.core.RocketMQListener;
import org.skipper.rocketmq.spring.starter.support.ConsumeMode;

/**
 * Created with IntelliJ IDEA.
 * Description: 顺序消费失败，默认不重试
 *
 * @author shoujian
 * Date: 2021-08-04
 * Time: 下午7:46
 */
@Slf4j
@RocketMQMessageListener(topic = "topic-4", consumerGroup = "consumer_test-group-4",consumeMode = ConsumeMode.ORDERLY)
public class Consumer4 implements RocketMQListener<String> {

    @Override
    public void onMessage(String message) {
        log.info("receive message : {}", message);
    }

}
